<template>

   <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="names"
        label="股票名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="city"
        label="最新价钱"
        width="180">
      </el-table-column>
      <el-table-column
        prop="workage"
        label="涨跌幅">
      </el-table-column>
      <el-table-column
        prop="salary"
        label="涨跌额">
      </el-table-column>
    </el-table>
</template>

<script>
 export default {
      data() {
        return {
          tableData: [

           ]
        }
      },
   mounted() {
        fetch("http://127.0.0.1:5000/getJiqiXueData").then((e)=>{
          return e.json()
        }).then((e)=>{
          this.tableData=e
        })
   }
 }
</script>

<style scoped>

</style>